import numpy as np


#create 1d array

array1d = np.array([1,2,3,4,5,6,7,8,9,10])
print("array1d")
print(array1d)
print("array1d[1:5] splicing")
print(array1d[1:5])

print("array1d[1:5:2] splicing")
# 1:5 means from 1 to 5,step size is 2
print(array1d[1:5:2])

#create 2d array

array2d = np.array([[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15]])

#array2d splicing

print(f"array2d[1:10]={array2d[1:10]}")

print(f"array2d[1:2]={array2d[1:2]}")
#start row 2 
print(f"array2d[1:] = {array2d[1:]}")
#start row 2 and start column 2
print(f"array2d[1:,1:] = {array2d[1:,1:]}")